﻿using SvnAPI.Command.Command;
using SvnAPI.Command.Interface;
using System;

namespace SvnAPI.Command.Base
{
    /// <summary>
    /// Class to initiate the specific command and get access for all funcionality.
    /// 
    /// App.config - Configuration for the API
    /// 
    ///     SVN_SERVER - Name to the envinroment variable an it determines the path to the folder where the executables are without '\bin'.
    ///         e.g: SVN_SERVER = C:\Program Files\TortoiseSVN
    /// 
    /// </summary>
    /// <![CDATA[https://svnapi.codeplex.com/]]>
    public static class Command
    {
        /// <summary>
        /// Method to execute command on svn look tool.
        /// </summary>
        /// <returns></returns>
        public static SvnLookCommand LookCommand(String txnRevision, String repositoryPath, String pathInRepository = "")
        {
            return new SvnLookCommand(txnRevision, repositoryPath, pathInRepository);
        }
    }
}